package com.hospital.register.user.controller.api;

import com.hospital.register.common.result.Result;
import com.hospital.register.user.dto.WeixinLoginInfo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.io.UnsupportedEncodingException;

@Api(tags = "微信相关操作")
@Controller
@RequestMapping("/api/ucenter/wx")
public class WeixinApiController {

    @ApiOperation(value = "微信扫码登录前，页面需要获得的参数")
    @GetMapping("/getLoginParam")
    @ResponseBody
    public Result<WeixinLoginInfo> getLoginParam() throws UnsupportedEncodingException {
        return Result.ok(new WeixinLoginInfo());
    }

}
